#ifndef Tui_TCheckBox_h
#define Tui_TCheckBox_h

#include "TMaskPanel.h"
#include "TScale9.h"

class TCheckBox :public TPanelItem{
public:
    CREATE_FUNC(TCheckBox);
    TCheckBox();
    ~TCheckBox(); 
    
    
    virtual void selected();
    virtual void unselected();
    static TCheckBox* create(xml_node<> * pItem);
    virtual  void initWidthConf(xml_node<> * pItem);
    
    bool isSelected();
    void setSelected(bool value);
protected:
    bool m_bSelected;

    TScale9* m_pBg;
    CCSprite* m_pIcon;
};





class TRadio:public TPanelItem{
public:
    CREATE_FUNC(TRadio);
    TRadio();
    ~TRadio();
    
    
    virtual void selected();
    virtual void unselected();
    static TRadio* create(xml_node<> * pItem);
    virtual  void initWidthConf(xml_node<> * pItem);
    
    bool isSelected();
    void setSelected(bool value);
protected:
    bool m_bSelected;
    
    TScale9* m_pBg;
    CCSprite* m_pIcon;
};
#endif
